package com.shopping_back.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shopping_back.common.Result;
import com.shopping_back.pojo.entity.OrderMain;
import com.shopping_back.pojo.entity.PromotionActivity;
import com.shopping_back.pojo.entity.SeckillItem;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 秒杀商品表 服务类
 * </p>
 *
 * @author Jack
 * @since 2025-07-12
 */
public interface ISeckillItemService extends IService<SeckillItem> {

    PromotionActivity getSeckillActivity(Long activityId);

    Page<SeckillItem> getSeckillItems(Long activityId, Integer page, Integer size);


    Result placeSeckillOrder(Long userId, Long activityId, Long skuId, Integer quantity);
}
